package de.itagile.hypersphere

import de.itagile.hypersphere.EjbTemplateimport de.itagile.hypersphere.EjbJarXmlParser
class Starter {
	
	def static getType(def id) {
		return "java.lang.String"
	}
	
	def static getColumn(def id) {
		return "COLUMN"
	}
	
	def static getTable(def entity) {
		return "TABLE"
	}
	
	public static void main(String[] args) {
		def file = new File('./src/test/resources/ejb-jar.xml')
		Node node = new EjbJarXmlParser().parse(file)
		Template.path = './src/generated/java/'
		EjbTemplate t = new EjbTemplate(node, this, new EntityTemplateFactory());
		t.start();
	}
}